use crate::domain;
use salvo::prelude::*;
use crate::extends::jwt::create_jwt_auth_handler ;
pub fn create_router() -> Router {

    //jwt验证中间件
let jwthandler =create_jwt_auth_handler();
    Router::new()
        .push(
            Router::new()
            .push(
                Router::new()
                    .path("categories")
                    .get(domain::categories::handler::categories),
            ),
        ).before(jwthandler)
}